package main.controller;

import javafx.event.ActionEvent;
import javafx.fxml.FXML;
import javafx.scene.control.MenuItem;
import main.view.Main;
import java.io.IOException;

public class AdminMenu {

    @FXML
    private MenuItem into;

    @FXML
    private MenuItem manage;

    @FXML
    private MenuItem classify;

    @FXML
    private MenuItem information;

    @FXML
    private MenuItem state;

    @FXML
    private MenuItem leave;

    @FXML
    private MenuItem exit;

    @FXML
    void booksInLibrary(ActionEvent event) throws IOException {
        new Main().initBookInLibrary();
    }

    @FXML
    void changeUserInformation(ActionEvent event) throws IOException {
        new Main().changeUserInformation();
    }

    @FXML
    void disabledState(ActionEvent event) throws IOException {
        new Main().bindStatus();
    }

    @FXML
    void exitSystem(ActionEvent event) throws IOException {
        new Main().exit();
    }


    @FXML
    void mangeBook(ActionEvent event) throws IOException {
        new Main().mangeBook();
    }

    @FXML
    void typeBook(ActionEvent event) throws IOException {
        new Main().typeBook();
    }

}
